﻿using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcDDshop2.Controllers
{
    public class MybookController : Controller
    {
        //
        // GET: /Mybook/

        public ActionResult Index()
        {
            int userid = Convert.ToInt32(Session["userid"]);
            List<Book> books = BLL.Bll.select_mybook(userid);
            ViewBag.books = books;
            return View();
        }

    }
}
